<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="oneTaskProcessModification_710" name="The One Task Process" isExecutable="true" camunda:historyTimeToLive="5">
    <documentation>This is a process for testing purposes</documentation>

    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="userTask1" />

    <userTask id="userTask1" />
    <sequenceFlow id="flow2" sourceRef="userTask1" targetRef="userTask2" />

    <userTask id="userTask2" />
    <sequenceFlow id="flow3" sourceRef="userTask2" targetRef="theTask" />

    <serviceTask id="theTask" name="my task" camunda:expression="${true}">
      <extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="groovy">throw new RuntimeException()</camunda:script>
        </camunda:executionListener>
        <camunda:inputOutput>
          <camunda:inputParameter name="Input_08c2ntk">
            <camunda:script scriptFormat="groovy">throw new RuntimeException()</camunda:script>
          </camunda:inputParameter>
        </camunda:inputOutput>
      </extensionElements>
    </serviceTask>

    <sequenceFlow id="flow4" sourceRef="theTask" targetRef="userTask3" />
    <userTask id="userTask3" />

    <sequenceFlow id="flow6" sourceRef="userTask3" targetRef="userTask4" />
    <userTask id="userTask4" />


    <sequenceFlow id="flow5" sourceRef="userTask3" targetRef="theEnd" />
    <endEvent id="theEnd" />

  </process>

</definitions>
